/* 注册模态框样式 */
.register-modal {
  .ant-modal-content {
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to bottom, #ffffff, #f5f9ff);
    border: 1px solid rgba(137, 196, 244, 0.2);
  }

  .ant-modal-body {
    padding: 0;
    background: transparent;
  }

  .ant-form-item {
    margin-bottom: 15px;
  }

  .ant-form-item-label {
    padding-bottom: 4px;
    
    > label {
      font-weight: 500;
      color: #1e5799;
      height: 22px;
      font-size: 14px;
      
      &:before {
        color: #5d9cec !important;
      }
    }
  }

  .ant-input,
  .ant-input-affix-wrapper,
  .ant-select-selector {
    border-radius: 8px;
    height: 42px;
    border: 1px solid #d0e1f9;
    transition: all 0.3s;
    background-color: #f8faff;

    &:hover, &:focus {
      border-color: #5d9cec;
      box-shadow: 0 0 0 2px rgba(74, 137, 220, 0.2);
    }
  }

  .ant-input {
    padding: 8px 16px;
    color: #2d3748;
    line-height: 24px;
  }

  .ant-select-selector {
    padding: 0 8px !important;
    display: flex;
    align-items: center;
    border: 1px solid #d0e1f9;
    background-color: #f8faff !important;
    height: 42px !important;
  }
  
  .ant-select-selection-item {
    line-height: 42px !important;
    color: #2d3748;
  }

  .ant-input-password {
    display: flex;
    align-items: center;
    
    .ant-input {
      height: 40px;
      padding: 0;
      border: none;
      background-color: transparent;
    }
  }
  
  .ant-input::placeholder {
    color: #a0aec0;
  }

  .ant-btn {
    border-radius: 8px;
    height: 42px;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
  }

  .ant-btn-primary {
    background: linear-gradient(135deg, #4a89dc, #1e5799);
    border: none;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.2);

    &:hover, &:focus {
      background: linear-gradient(135deg, #5d9cec, #2b6fc2);
      transform: translateY(-1px);
      box-shadow: 0 6px 12px rgba(30, 87, 153, 0.25);
    }
    
    &:active {
      transform: translateY(1px);
      box-shadow: 0 2px 8px rgba(30, 87, 153, 0.2);
    }
  }

  .verification-btn {
    border-radius: 8px;
    background: linear-gradient(135deg, #4a89dc, #1e5799);
    color: white;
    height: 42px;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.2);
    min-width: 110px;
    padding: 0 15px;
    white-space: nowrap;
    
    &:disabled {
      background: linear-gradient(135deg, #a0aec0, #718096);
      color: rgba(255, 255, 255, 0.7);
      box-shadow: none;
    }
    
    &:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 6px 12px rgba(30, 87, 153, 0.25);
    }
    
    &:active:not(:disabled) {
      transform: translateY(1px);
      box-shadow: 0 2px 8px rgba(30, 87, 153, 0.2);
    }
  }
  
  .register-btn {
    height: 44px;
    background: linear-gradient(135deg, #4a89dc, #1e5799);
    width: 100%;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    box-shadow: 0 4px 10px rgba(30, 87, 153, 0.2);
    
    &:hover {
      background: linear-gradient(135deg, #5d9cec, #2b6fc2);
      transform: translateY(-1px);
      box-shadow: 0 6px 12px rgba(30, 87, 153, 0.25);
    }
    
    &:active {
      transform: translateY(1px);
      box-shadow: 0 2px 8px rgba(30, 87, 153, 0.2);
    }
  }
  
  .register-container {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(245, 249, 255, 0.9));
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(74, 137, 220, 0.1);
  }

  .register-header {
    text-align: center;
    padding: 25px 0 20px;
    position: relative;
    border-bottom: 1px solid rgba(208, 225, 249, 0.6);
    margin-bottom: 15px;
    position: relative;

    &:after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 3px;
      background: linear-gradient(90deg, #4a89dc, #5d9cec);
      border-radius: 3px;
    }

    img {
      width: 65px;
      height: 65px;
      margin-bottom: 12px;
      filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
      transition: transform 0.3s ease;
      
      &:hover {
        transform: scale(1.05);
      }
    }

    h2 {
      font-size: 22px;
      font-weight: 500;
      color: #1e5799;
      margin: 0;
      letter-spacing: 0.5px;
    }

    .close-button {
      position: absolute;
      top: 15px;
      right: 15px;
      font-size: 16px;
      color: #a0aec0;
      cursor: pointer;
      background: transparent;
      border: none;
      padding: 0;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.3s;
      
      &:hover {
        color: #4a89dc;
        background-color: rgba(74, 137, 220, 0.1);
        transform: rotate(90deg);
      }
    }
  }

  .register-form {
    padding: 15px 30px 25px;
    
    .ant-form {
      display: flex;
      flex-wrap: wrap;
      gap: 0 15px;
      
      .ant-form-item {
        &:nth-child(1), // 学号
        &:nth-child(2) { // 姓名
          width: calc(50% - 7.5px);
        }
        
        &:nth-child(3), // 手机号
        &:nth-child(4) { // 角色
          width: calc(50% - 7.5px);
        }
        
        &:nth-child(5), // 邮箱
        &:nth-child(6) { // 验证码
          width: 100%;
        }
        
        &:nth-child(7), // 密码
        &:nth-child(8) { // 确认密码
          width: calc(50% - 7.5px);
        }
        
        &:last-child { // 注册按钮
          width: 100%;
        }
      }
    }
  }

  .login-link {
    text-align: center;
    padding: 0 0 25px;
    font-size: 14px;
    color: #7f8c9a;

    a {
      color: #4a89dc;
      margin-left: 4px;
      font-weight: 500;
      position: relative;
      transition: all 0.3s;
      
      &:after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, #4a89dc, #5d9cec);
        transition: width 0.3s ease;
      }
      
      &:hover {
        color: #1e5799;
        
        &:after {
          width: 100%;
        }
      }
    }
  }
} 